
/**
 * table
 */
// 获取table中的cols
function getTableCols(contextPath) {
    var reportId = $("#reportId").val();
    $.ajax({
        type: "POST",
        url: contextPath + "/showReport/getTableCols",
        data: {
            reportId: reportId,
            chartType: window.chartType
        },
        async: false,
        success: function (result) {
            if(result != null){
                pageData.cols = JSON.parse(result);
            }
        }
    });
}